<template>
  <el-scrollbar wrap-class="field-wrap">
    <el-radio-group class="checker-plain" v-model="myValue" @change="handleChange" style="white-space: nowrap;">
      <el-radio v-for="(item,index) in list" :label="index" :key="index">{{item.placeNumber}}</el-radio>
    </el-radio-group>
  </el-scrollbar>
</template>

<script>
export default {
  props: {
    list: {
      type: Array
    },
    value: {}
  },
  watch: {
    value (value) {
      this.myValue = value
    }
  },
  data () {
    return {
      myValue: this.value
    }
  },
  methods: {
    handleChange (value) {
      this.$emit('input', value).$emit('change', value)
    }
  }
}
</script>

<style lang="scss" scoped>


</style>
